﻿/*
===============================================================================
*文件名称(File Name)：ConfigHelper
*功能描述(Description)：
*数据表(Tables)：
*作者(Author)：第八个男人
*日期(Create Date)：2016/11/26 21:13:38
*修改记录(Revision History)：
* V1.0.0.0 Created by 第八个男人 at 2016/11/26 21:13:38
===============================================================================
*/
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zero.Utility
{
    public static class ConfigHelper
    {
        public static string PublishVersion
        {
            get
            {
                try
                {
                    return ConfigurationManager.AppSettings.Get("PublishVersion");
                }
                catch (System.Exception ex)
                {
                    string e = ex.Message;
                    return Guid.NewGuid().ToString().Replace("-", "").ToLower();
                }
            }
        }
        public static string StaticHost
        {
            get
            {
                try
                {
                    return ConfigurationManager.AppSettings.Get("StaticHost");
                }
                catch (System.Exception ex)
                { 
                    throw ex;
                }
            }
        }
    }
}
